home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / nqc.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  7KB  |  219 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  4.  
  5. <MODE>
  6.     <PROPS>
  7.         <PROPERTY NAME="commentStart" VALUE="/*" />
  8.         <PROPERTY NAME="commentEnd" VALUE="*/" />
  9.         <PROPERTY NAME="lineComment" VALUE="//" />
  10.         <PROPERTY NAME="wordBreakChars" VALUE=",+-=<>/?^&*" />
  11.  
  12.         <!-- Auto indent -->
  13.         <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
  14.         <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
  15.         <PROPERTY NAME="indentNextLine"
  16.             VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
  17.         <!-- set this to 'true' if you want to use GNU coding style -->
  18.         <PROPERTY NAME="doubleBracketIndent" VALUE="false" />
  19.     </PROPS>
  20.     <RULES IGNORE_CASE="FALSE"
  21.         HIGHLIGHT_DIGITS="TRUE"
  22.         DIGIT_RE="(0x[\p{XDigit}]+[lL]?|[\p{Digit}]+(e[\p{Digit}]*)?[lLdDfF]?)">
  23.  
  24.         <!-- C style comment -->
  25.         <SPAN TYPE="COMMENT1">
  26.             <BEGIN>/*</BEGIN>
  27.             <END>*/</END>
  28.         </SPAN>
  29.  
  30.         <SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE">
  31.             <BEGIN>"</BEGIN>
  32.             <END>"</END>
  33.         </SPAN>
  34.         <SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE">
  35.             <BEGIN>'</BEGIN>
  36.             <END>'</END>
  37.         </SPAN>
  38.  
  39.         <!-- preprocessor statements -->
  40.         <EOL_SPAN TYPE="KEYWORD2">#</EOL_SPAN>
  41.  
  42.         <EOL_SPAN TYPE="COMMENT2">//</EOL_SPAN>
  43.         <SEQ TYPE="OPERATOR">=</SEQ>
  44.         <SEQ TYPE="OPERATOR">!</SEQ>
  45.         <SEQ TYPE="OPERATOR">>=</SEQ>
  46.         <SEQ TYPE="OPERATOR"><=</SEQ>
  47.         <SEQ TYPE="OPERATOR">+</SEQ>
  48.         <SEQ TYPE="OPERATOR">-</SEQ>
  49.         <SEQ TYPE="OPERATOR">/</SEQ>
  50.  
  51.         <SEQ TYPE="OPERATOR">*</SEQ>
  52.         <SEQ TYPE="OPERATOR">></SEQ>
  53.         <SEQ TYPE="OPERATOR"><</SEQ>
  54.         <SEQ TYPE="OPERATOR">%</SEQ>
  55.         <SEQ TYPE="OPERATOR">&</SEQ>
  56.         <SEQ TYPE="OPERATOR">|</SEQ>
  57.         <SEQ TYPE="OPERATOR">^</SEQ>
  58.         <SEQ TYPE="OPERATOR">~</SEQ>
  59.         <SEQ TYPE="OPERATOR">}</SEQ>
  60.         <SEQ TYPE="OPERATOR">{</SEQ>
  61.         <MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
  62.             MATCH_TYPE="OPERATOR"
  63.             TYPE="LABEL">:</MARK_PREVIOUS>
  64.  
  65.         <!-- Function calls -->
  66.         <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>
  67.         <SEQ TYPE="OPERATOR">)</SEQ>
  68.  
  69.         <KEYWORDS>
  70.             <KEYWORD1>__event_src</KEYWORD1>
  71.             <KEYWORD1>__sensor</KEYWORD1>
  72.             <KEYWORD1>__type</KEYWORD1>
  73.             <KEYWORD1>abs</KEYWORD1>
  74.             <KEYWORD1>aquire</KEYWORD1>
  75.             <KEYWORD1>catch</KEYWORD1>
  76.             <KEYWORD1>const</KEYWORD1>
  77.             <KEYWORD1>break</KEYWORD1>
  78.             <KEYWORD1>case</KEYWORD1>
  79.             <KEYWORD1>continue</KEYWORD1>
  80.             <KEYWORD1>default</KEYWORD1>
  81.             <KEYWORD1>do</KEYWORD1>
  82.             <KEYWORD1>else</KEYWORD1>
  83.             <KEYWORD1>for</KEYWORD1>
  84.             <KEYWORD1>monitor</KEYWORD1>
  85.             <KEYWORD1>if</KEYWORD1>
  86.             <KEYWORD1>return</KEYWORD1>
  87.             <KEYWORD1>repeat</KEYWORD1>
  88.             <KEYWORD1>sign</KEYWORD1>
  89.             <KEYWORD1>start</KEYWORD1>
  90.             <KEYWORD1>stop</KEYWORD1>
  91.             <KEYWORD1>sub</KEYWORD1>
  92.             <KEYWORD1>switch</KEYWORD1>
  93.             <KEYWORD1>task</KEYWORD1>
  94.             <KEYWORD1>while</KEYWORD1>
  95.  
  96.             <KEYWORD2>asm</KEYWORD2>
  97.             <KEYWORD2>inline</KEYWORD2>
  98.  
  99.             <KEYWORD3>int</KEYWORD3>
  100.             <KEYWORD3>void</KEYWORD3>
  101.  
  102.             <LITERAL2>true</LITERAL2>
  103.             <LITERAL2>false</LITERAL2>
  104.             <LITERAL2>NULL</LITERAL2>
  105.  
  106.             <LITERAL2>SENSOR_1</LITERAL2>
  107.             <LITERAL2>SENSOR_2</LITERAL2>
  108.             <LITERAL2>SENSOR_3</LITERAL2>
  109.  
  110.             <LITERAL2>SENSOR_TYPE_NONE</LITERAL2>
  111.             <LITERAL2>SENSOR_TYPE_TOUCH</LITERAL2>
  112.             <LITERAL2>SENSOR_TYPE_TEMPERATURE</LITERAL2>
  113.             <LITERAL2>SENSOR_TYPE_LIGHT</LITERAL2>
  114.             <LITERAL2>SENSOR_TYPE_ROTATION</LITERAL2>
  115.  
  116.             <LITERAL2>SENSOR_MODE_RAW</LITERAL2>
  117.             <LITERAL2>SENSOR_MODE_BOOL</LITERAL2>
  118.             <LITERAL2>SENSOR_MODE_EDGE</LITERAL2>
  119.             <LITERAL2>SENSOR_MODE_PULSE</LITERAL2>
  120.             <LITERAL2>SENSOR_MODE_PERCENT</LITERAL2>
  121.             <LITERAL2>SENSOR_MODE_FAHRENHEIT</LITERAL2>
  122.             <LITERAL2>SENSOR_MODE_CELSIUS</LITERAL2>
  123.             <LITERAL2>SENSOR_MODE_ROTATION</LITERAL2>
  124.  
  125.             <LITERAL2>SENSOR_TOUCH</LITERAL2>
  126.             <LITERAL2>SENSOR_LIGHT</LITERAL2>
  127.             <LITERAL2>SENSOR_EDGE</LITERAL2>
  128.             <LITERAL2>SENSOR_PULSE</LITERAL2>
  129.             <LITERAL2>SENSOR_FAHRENHEIT</LITERAL2>
  130.             <LITERAL2>SENSOR_CELSIUS</LITERAL2>
  131.             <LITERAL2>SENSOR_ROTATION</LITERAL2>
  132.  
  133.             <LITERAL2>OUT_A</LITERAL2>
  134.             <LITERAL2>OUT_B</LITERAL2>
  135.             <LITERAL2>OUT_C</LITERAL2>
  136.  
  137.             <LITERAL2>OUT_OFF</LITERAL2>
  138.             <LITERAL2>OUT_ON</LITERAL2>
  139.             <LITERAL2>OUT_FLOAT</LITERAL2>
  140.  
  141.             <LITERAL2>OUT_FWD</LITERAL2>
  142.             <LITERAL2>OUT_REV</LITERAL2>
  143.             <LITERAL2>OUT_TOOGLE</LITERAL2>
  144.  
  145.             <LITERAL2>OUT_FULL</LITERAL2>
  146.             <LITERAL2>OUT_HALF</LITERAL2>
  147.             <LITERAL2>OUT_LOW</LITERAL2>
  148.  
  149.             <LITERAL2>SOUND_CLICK</LITERAL2>
  150.             <LITERAL2>SOUND_DOUBLE_BEEP</LITERAL2>
  151.             <LITERAL2>SOUND_DOWN</LITERAL2>
  152.             <LITERAL2>SOUND_UP</LITERAL2>
  153.             <LITERAL2>SOUND_LOW_BEEP</LITERAL2>
  154.             <LITERAL2>SOUND_FAST_UP</LITERAL2>
  155.  
  156.             <LITERAL2>DISPLAY_WATCH</LITERAL2>
  157.             <LITERAL2>DISPLAY_OUT_A</LITERAL2>
  158.             <LITERAL2>DISPLAY_OUT_B</LITERAL2>
  159.             <LITERAL2>DISPLAY_OUT_C</LITERAL2>
  160.             <LITERAL2>DISPLAY_SENSOR_1</LITERAL2>
  161.             <LITERAL2>DISPLAY_SENSOR_2</LITERAL2>
  162.             <LITERAL2>DISPLAY_SENSOR_3</LITERAL2>
  163.  
  164.             <LITERAL2>TX_POWER_LO</LITERAL2>
  165.             <LITERAL2>TX_POWER_HI</LITERAL2>
  166.  
  167.             <LITERAL2>SERIAL_COMM_DEFAULT</LITERAL2>
  168.             <LITERAL2>SERIAL_COMM_4800</LITERAL2>
  169.             <LITERAL2>SERIAL_COMM_DUTY25</LITERAL2>
  170.             <LITERAL2>SERIAL_COMM_76KHZ</LITERAL2>
  171.  
  172.             <LITERAL2>SERIAL_PACKET_PREAMBLE</LITERAL2>
  173.             <LITERAL2>SERIAL_PACKET_DEFAULT</LITERAL2>
  174.             <LITERAL2>SERIAL_PACKET_NEGATED</LITERAL2>
  175.             <LITERAL2>SERIAL_PACKET_CHECKSUM</LITERAL2>
  176.             <LITERAL2>SERIAL_PACKET_RCX</LITERAL2>
  177.             <LITERAL2>SERIAL_PACKET_</LITERAL2>
  178.  
  179.             <LITERAL2>ACQUIRE_OUT_A</LITERAL2>
  180.             <LITERAL2>ACQUIRE_OUT_B</LITERAL2>
  181.             <LITERAL2>ACQUIRE_OUT_C</LITERAL2>
  182.             <LITERAL2>ACQUIRE_SOUND</LITERAL2>
  183.             <LITERAL2>ACQUIRE_USER_1</LITERAL2>
  184.             <LITERAL2>ACQUIRE_USER_2</LITERAL2>
  185.             <LITERAL2>ACQUIRE_USER_3</LITERAL2>
  186.             <LITERAL2>ACQUIRE_USER_4</LITERAL2>
  187.  
  188.             <LITERAL2>EVENT_TYPE_PRESSED</LITERAL2>
  189.             <LITERAL2>EVENT_TYPE_RELEASED</LITERAL2>
  190.             <LITERAL2>EVENT_TYPE_PULSE</LITERAL2>
  191.             <LITERAL2>EVENT_TYPE_EDGE</LITERAL2>
  192.             <LITERAL2>EVENT_TYPE_FASTCHANGE</LITERAL2>
  193.             <LITERAL2>EVENT_TYPE_LOW</LITERAL2>
  194.             <LITERAL2>EVENT_TYPE_NORMAL</LITERAL2>
  195.             <LITERAL2>EVENT_TYPE_HIGH</LITERAL2>
  196.             <LITERAL2>EVENT_TYPE_CLICK</LITERAL2>
  197.             <LITERAL2>EVENT_TYPE_DOUBLECLICK</LITERAL2>
  198.             <LITERAL2>EVENT_TYPE_MESSAGE</LITERAL2>
  199.  
  200.             <LITERAL2>EVENT_1_PRESSED</LITERAL2>
  201.             <LITERAL2>EVENT_1_RELEASED</LITERAL2>
  202.             <LITERAL2>EVENT_2_PRESSED</LITERAL2>
  203.             <LITERAL2>EVENT_2_RELEASED</LITERAL2>
  204.             <LITERAL2>EVENT_LIGHT_HIGH</LITERAL2>
  205.             <LITERAL2>EVENT_LIGHT_NORMAL</LITERAL2>
  206.             <LITERAL2>EVENT_LIGHT_LOW</LITERAL2>
  207.             <LITERAL2>EVENT_LIGHT_CLICK</LITERAL2>
  208.             <LITERAL2>EVENT_LIGHT_DOUBLECLICK</LITERAL2>
  209.             <LITERAL2>EVENT_COUNTER_0</LITERAL2>
  210.             <LITERAL2>EVENT_COUNTER_1</LITERAL2>
  211.             <LITERAL2>EVENT_TIMER_0</LITERAL2>
  212.             <LITERAL2>EVENT_TIMER_1</LITERAL2>
  213.             <LITERAL2>EVENT_TIMER_2</LITERAL2>
  214.             <LITERAL2>EVENT_MESSAGE</LITERAL2>
  215.  
  216.         </KEYWORDS>
  217.     </RULES>
  218. </MODE>
  219.